-
Notifications
You must be signed in to change notification settings - Fork 18
Use storage in ads uploads #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
8c7b872 to
5d35d50
Compare
078bfd4 to
050c175
Compare
migrations/v30x/m1_storage.php
Outdated
| continue; | ||
| } | ||
|
|
||
| $file_tracker->track_file('phpbb_ads', $file, filesize($dir . '/' . $file)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes me wonder if the $file_tracker class should have track_files and untrack_files methods for handling multiple entries in 1 query?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it can be updated to support more than one file.
I add it to the todo list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! (Will be a lot less queries)
| phpbb_ads_storage_banner: | ||
| path: /ads_download/{file} | ||
| defaults: | ||
| _controller: phpbb.ads.controller.banner:handle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll probably want to add stateless: true here eventually, re: https://github.com/phpbb/phpbb/compare/master...marc1706:phpbb:feature/stateless_sessions?expand=1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this can be done in the future, there is not even a pull request for this and can change in the future
No description provided.